package com.fa4j.demo.book.model;


import com.fa4j.common.base.model.CommonState;
import com.fa4j.common.base.model.PageQuery;
import com.fa4j.common.data.annotation.Query;
import com.fa4j.common.data.model.QueryType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "示例书分页查询参数")
public class BookQuery extends PageQuery {

    @Query(type = QueryType.EQ)
    @Schema(description = "ID")
    private Integer id;

    @Query(type = QueryType.LIKE)
    @Schema(description = "书名")
    private String name;

    @Schema(description = "状态")
    private CommonState state;

    @Query(type = QueryType.LIKE)
    @Schema(description = "作者")
    private String author;

}
